
import { Card, Tabs } from 'antd';
import GatewayPanel from './components/GatewayPanel';
import ResourcePanel from './components/ResourcePanel';
const App = () => {
  
  // const a = {"code":200,"data":{"total":3,"records":[{"id":1,"host":"case-dev.weillan.com","path":"/admin/*","dataId":"33333","group":"33","name":null,"createdAt":"2023-01-12T09:50:54.000Z","updatedAt":"2023-01-12T10:35:57.000Z"},{"id":2,"host":"case-dev.weillan.com","path":"/*","dataId":"33333","group":"33","name":null,"createdAt":"2023-01-12T09:56:21.000Z","updatedAt":"2023-01-12T09:56:21.000Z"},{"id":3,"host":"case-test.weillan.com","path":"/*","dataId":"33","group":"333","name":null,"createdAt":"2023-01-12T10:15:46.000Z","updatedAt":"2023-01-12T10:15:46.000Z"}]}}
  // const records = a.data.records
  // console.log(tableProps.dataSource)
  // console.log(tableProps.dataSource.sort((a,b)=>a.host>b.host?1:-1))
  return (<Card>
    <Tabs
    items={[{
      label:'域名关联',
      key:'1',
      children:<GatewayPanel/>
    },{
      label:'资源管理',
      key:'2',
      children:<ResourcePanel/>
    }]}
    >
      
    </Tabs>
   
  </Card>)
}
export default App
